import service from '@/api'
import initServer from '@/api/etrade'

export function login(params) {
  return service({
    url:'/index/login',
    method:'POST',
    data:params,
  })
}

export function getToken(){
  let service = initServer('/accessTokenApi', 'http://erp.appjx.cn/hbindex.php')
  return service({
    url:'',
    method:'GET'
  })
}